<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

    <p>Hello world</p>

</body>

<script type="text/javascript">
    var str = "How are you doing today?"

    document.write(str.split(" ") + "<br />");
    document.write(str.split("") + "<br />");
    document.write(str.split(" ", 3));
    document.write("<br>");
    document.write(str.split(" ", 3).reverse());
    document.write("<br>");
    document.write(str.split(" ").reverse());
    document.write("<br>");
    var msg = "Hello";
    msg = msg.split(" ").reverse();
    console.log(msg);

    document.write("<br>");
    var arr = new Array(3)
    arr[0] = "George"
    arr[1] = "John"
    arr[2] = "Thomas"

    document.write(arr + "<br />");
    document.write(arr.reverse());
</script>

</html>